package com.example.superoa.model.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import com.example.superoa.model.pojos.CalendarYf;
@Repository
public interface CalendarYfDao extends  CrudRepository<CalendarYf,Integer>{
	@Query("select c from CalendarYf c where c.itime=?1")
	public CalendarYf findOne(String itime);
	
	@Query("select c from CalendarYf c where c.imouthyear=?1")
	public List<CalendarYf> findAll(String imouthyear);
	
	@Query("select c from CalendarYf c where c.itime=?1")
	public List<CalendarYf> findMany(String itime);
}
